    @echo off
    set cyear=%date:~0,4%
    set cmonth=%date:~5,2%
    set cday=%date:~8,2%
    set chour=%time:~0,2%
    if "%chour:~0,1%"==" " set "chour=%chour:~1,1%"
    set cmin=%time:~3,2%
    set cdate=%cyear%_%cmonth%_%cday%
    set ctime=%chour%_%cmin%
    set fdir=%cyear%_%cmonth%

    md C:\tomcat-6.0.20\backup\%fdir%
    mysqldump -hlocalhost -uroot -proot -R  pand>C:\tomcat-6.0.20\backup\%fdir%\pand_%cdate%__%ctime%.sql
rem    pause

